package com.jkc.xh.adapters;

import android.view.ViewGroup;

import com.jkc.xh.adapters.core.BaseRecyclerAdapter;
import com.jkc.xh.adapters.viewholder.TodayWeituoItemView;
import com.jkc.xh.adapters.viewholder.TodayWeituoItemView_;
import com.jkc.xh.models.TodayWeituoModel;

/**
 * Created by macintosh on 15/11/17.
 */
public class TodayWeituoAdapter extends BaseRecyclerAdapter<TodayWeituoModel, TodayWeituoItemView> {
    @Override
    protected TodayWeituoItemView onCreateItemView(ViewGroup parent, int viewType) {
        return TodayWeituoItemView_.build(parent.getContext());
    }

    @Override
    protected void onBindView(TodayWeituoItemView itemView, TodayWeituoModel orderModel, int position) {
        itemView.bind(orderModel);
    }

}
